package com.plian.system.vo.pm.bond;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.plian.Tools.DateUtil;
import lombok.*;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @description:
 * @author: gangan
 * @create: 2020-11-24 10:35
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BondIssuerVO {

    /**
     * 发行id
     */
    private String bondIssuerId;

    /**
     * 发行债券名称
     */
    private String bondName;

    /**
     * 发行金额
     */
    private BigDecimal issueAmount;

    /**
     * 起息日
     */
    @JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
    private Date bondValueDate;

    /**
     * 到期日
     */
    @JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
    private Date bondMaturity;

    /**
     * 偿还列表
     */
    private List<BondRepaymentVO> bondRepaymentVOS;
}
